package iceforge;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.*;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class Iceforge extends javax.swing.JFrame {
  private JPanel jPanel1;
  private JScrollPane jScrollPane1;
  private JTextArea log;
  private JButton deploy;
  private JTextField version;

  /**
  * Auto-generated main method to display this JFrame
  */
  public static void main(String[] args) {
    SwingUtilities.invokeLater(new Runnable() {
      public void run() {
        Iceforge inst = new Iceforge();
        inst.setLocationRelativeTo(null);
        inst.setVisible(true);
      }
    });
  }
  
  public Iceforge() {
    super();
    initGUI();
  }
  
  private void initGUI() {
    try {
      {
        jPanel1 = new JPanel();
        getContentPane().add(jPanel1, BorderLayout.CENTER);
        jPanel1.setPreferredSize(new java.awt.Dimension(780, 560));
        jPanel1.setSize(900, 573);
        jPanel1.setLayout(null);
        {
        	version = new JTextField();
        	jPanel1.add(version);
        	version.setText("V3_27_48_20110819");
        	version.setBounds(12, 12, 140, 24);
        }
        {
        	deploy = new JButton();
        	jPanel1.add(deploy);
        	deploy.setText("\u81ea\u52a8\u90e8\u7f72");
        	deploy.setBounds(152, 13, 114, 22);
        	deploy.addActionListener(new ActionListener() {
        		public void actionPerformed(ActionEvent evt) {
        			AutoDeploy.deploy();
        		}
        	});
        }
        {
        	jScrollPane1 = new JScrollPane();
        	jPanel1.add(jScrollPane1);
        	jScrollPane1.setBounds(338, 6, 449, 561);
        	{
        		log = new ConsoleTextArea();
        		jScrollPane1.setViewportView(log);
        		log.setText("\u65e5\u5fd7");
        		log.setFont(new java.awt.Font("微软雅黑",1,12));
        		log.setBackground(new java.awt.Color(0,0,0));
        		log.setForeground(new java.awt.Color(255,0,0));
        		log.setBounds(37, 35, 289, 546);
        	}
        }
      }
      setSize(800, 600);
    } catch (Exception e) {
      e.printStackTrace();
    }
  }

}
